Optimal. Leaf size=29 \[ a x-\frac{b \log \left (c^2 x^2+1\right )}{2 c}+b x \tan ^{-1}(c x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0113169, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {4846, 260} \[ a x-\frac{b \log \left (c^2 x^2+1\right )}{2 c}+b x \tan ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4846
Rule 260
Rubi steps
\begin{align*} \int \left (a+b \tan ^{-1}(c x)\right ) \, dx &=a x+b \int \tan ^{-1}(c x) \, dx\\ &=a x+b x \tan ^{-1}(c x)-(b c) \int \frac{x}{1+c^2 x^2} \, dx\\ &=a x+b x \tan ^{-1}(c x)-\frac{b \log \left (1+c^2 x^2\right )}{2 c}\\ \end{align*}
Mathematica [A] time = 0.0029365, size = 29, normalized size = 1. \[ a x-\frac{b \log \left (c^2 x^2+1\right )}{2 c}+b x \tan ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 28, normalized size = 1. \begin{align*} ax+bx\arctan \left ( cx \right ) -{\frac{b\ln \left ({c}^{2}{x}^{2}+1 \right ) }{2\,c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.985285, size = 42, normalized size = 1.45 \begin{align*} a x + \frac{{\left (2 \, c x \arctan \left (c x\right ) - \log \left (c^{2} x^{2} + 1\right )\right )} b}{2 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.23199, size = 81, normalized size = 2.79 \begin{align*} \frac{2 \, b c x \arctan \left (c x\right ) + 2 \, a c x - b \log \left (c^{2} x^{2} + 1\right )}{2 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.252711, size = 26, normalized size = 0.9 \begin{align*} a x + b \left (\begin{cases} x \operatorname{atan}{\left (c x \right )} - \frac{\log{\left (c^{2} x^{2} + 1 \right )}}{2 c} & \text{for}\: c \neq 0 \\0 & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33481, size = 42, normalized size = 1.45 \begin{align*} a x + \frac{{\left (2 \, c x \arctan \left (c x\right ) - \log \left (c^{2} x^{2} + 1\right )\right )} b}{2 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]